/* 首页魔法风格样式 */
.home-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: "Microsoft YaHei", "SimSun", serif;
  color: #2C3E50;
  font-size: 24rpx;
}

/* 顶部导航栏 */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 30rpx;
  background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  position: relative;
  z-index: 100;
  /* 添加安全区域适配 */
  padding-top: calc(20rpx + env(safe-area-inset-top));
}

.nav-left .time {
  font-size: 24rpx;
  font-weight: bold;
}

.nav-center .app-title {
  font-size: 32rpx;
  font-weight: bold;
  text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.3);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20rpx;
}

.status-icons {
  display: flex;
  gap: 10rpx;
}

.status-icon {
  font-size: 20rpx;
}

.action-icons {
  display: flex;
  gap: 15rpx;
}

.action-icon {
  font-size: 28rpx;
  width: 40rpx;
  height: 40rpx;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 主横幅区域 */
.main-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60rpx 30rpx;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 48rpx;
  font-weight: bold;
  color: white;
  text-shadow: 0 4rpx 8rpx rgba(0,0,0,0.3);
  margin-bottom: 20rpx;
}

.banner-subtitle {
  font-size: 28rpx;
  color: rgba(255,255,255,0.9);
  background: rgba(255,0,0,0.8);
  padding: 10rpx 30rpx;
  border-radius: 30rpx;
  display: inline-block;
}

/* 功能区块 */
.content-blocks {
  padding: 30rpx;
  display: flex;
  flex-direction: column;
  gap: 30rpx;
}

.content-block {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20rpx;
  padding: 30rpx;
  display: flex;
  align-items: center;
  gap: 30rpx;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.content-block:active::before {
  transform: translateX(100%);
}

.trading-block {
  border-left: 8rpx solid #28a745;
}

.flash-block {
  border-left: 8rpx solid #ffc107;
}

.live-block {
  border-left: 8rpx solid #dc3545;
}

.notice-block {
  border-left: 8rpx solid #17a2b8;
}

.block-left {
  flex-shrink: 0;
}

.block-icon {
  font-size: 60rpx;
  width: 80rpx;
  height: 80rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4rpx 12rpx rgba(102,126,234,0.3);
}

.block-content {
  flex: 1;
}

.block-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 10rpx;
}

.block-desc {
  font-size: 24rpx;
  color: #6c757d;
  margin-bottom: 10rpx;
}

.notice-text {
  font-size: 22rpx;
  color: #dc3545;
  font-style: italic;
}

.block-action {
  flex-shrink: 0;
}

.action-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 15rpx 30rpx;
  border-radius: 25rpx;
  font-size: 24rpx;
  font-weight: bold;
  box-shadow: 0 4rpx 12rpx rgba(40,167,69,0.3);
  transition: all 0.3s ease;
}

.action-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 2rpx 8rpx rgba(40,167,69,0.3);
}

/* 推广专区 */
.ad-section {
  padding: 30rpx;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ad-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 30rpx;
  text-align: center;
}

.ad-container {
  display: flex;
  flex-direction: column;
  gap: 30rpx;
  margin-bottom: 30rpx;
}

.ad-banner {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20rpx;
  padding: 30rpx;
  display: flex;
  align-items: center;
  gap: 30rpx;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.ad-banner:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.1);
}

.ad-icon {
  font-size: 50rpx;
  width: 70rpx;
  height: 70rpx;
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4rpx 12rpx rgba(255,193,7,0.3);
}

.ad-text {
  flex: 1;
}

.ad-title-text {
  font-size: 28rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 10rpx;
}

.ad-desc {
  font-size: 24rpx;
  color: #6c757d;
  margin-bottom: 10rpx;
}

.ad-contact {
  font-size: 22rpx;
  color: #17a2b8;
  font-style: italic;
}

.ad-cta {
  flex-shrink: 0;
}

.ad-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 15rpx 25rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  font-weight: bold;
  box-shadow: 0 4rpx 12rpx rgba(0,123,255,0.3);
}

.ad-notice {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-radius: 15rpx;
  padding: 20rpx;
  text-align: center;
  font-size: 24rpx;
  color: #155724;
  border: 2rpx solid #c3e6cb;
}

/* 今日臻选 */
.hot-section {
  padding: 30rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 30rpx;
  text-align: center;
}

.hot-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300rpx, 1fr));
  gap: 30rpx;
}

.hot-item {
  background: white;
  border-radius: 20rpx;
  overflow: hidden;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.hot-item:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.1);
}

.item-image {
  width: 100%;
  height: 200rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 60rpx;
}

.item-image image {
  width: 100%;
  height: 100%;
}

.item-info {
  padding: 20rpx;
}

.item-name {
  font-size: 28rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 10rpx;
}

.item-price {
  font-size: 32rpx;
  font-weight: bold;
  color: #dc3545;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 100rpx 30rpx;
  background: white;
  border-radius: 20rpx;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.1);
}

.empty-icon {
  font-size: 80rpx;
  margin-bottom: 30rpx;
  opacity: 0.5;
}

.empty-text {
  font-size: 28rpx;
  color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .content-block {
    flex-direction: column;
    text-align: center;
    gap: 20rpx;
  }
  
  .ad-banner {
    flex-direction: column;
    text-align: center;
    gap: 20rpx;
  }
  
  .hot-items {
    grid-template-columns: 1fr;
  }
}
